package com.syni.mdd.yhd.common.all.quartz.order.schedulingJob;

import com.syni.mdd.sjb.common.component.utils.common.annotations.CustomQuartz;
import com.syni.mdd.yhd.common.all.service.BmsDxOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.net.ssl.KeyManagerFactory;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.security.KeyStore;
import java.security.KeyStoreException;

/**
 * dec: 可控制的定时任务，通过restApi可动态控制定时任务的执行周期
 *
 *
 **/
@Component
@CustomQuartz(cronId = "orderRefund",cron = "0 0 0/1 * * ?")
public class OrderRefundJob implements Runnable{

    @Autowired
    BmsDxOrderService bmsDxOrderService;

    @Override
    public void run() {
        bmsDxOrderService.orderRufund();
    }

}
